import os
import configparser
import pytest

prodir = os.path.split(os.path.realpath(__file__))[0]
configpath = os.path.join(prodir,'config.ini')
configpath.split(os.path.realpath(__file__))


class Read:
    def __init__(self):
        self.conf = configparser.ConfigParser()
        self.conf.read(configpath,encoding = 'utf-8')


    def get_crm(self,name):
        value = self.conf.get('crm',name)
        return value


